package com.bcbim.smart_water.inspection.mapper;

import com.bcbim.common.sys.Code;
import com.bcbim.smart_water_interface.inspection.dao.InspectionDAO;
import com.bcbim.smart_water_interface.inspection.dto.InspectionStatisticsDTO;
import com.bcbim.smart_water_interface.inspection.vo.InspectionStatisticsListVO;
import com.bcbim.smart_water_interface.inspection.vo.ListInspectionVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface InspectionMapper {

    int countInspectionStatistics(InspectionStatisticsDTO inspectionStatisticsDTO);

    List<InspectionStatisticsListVO> listInspectionStatistics(InspectionStatisticsDTO inspectionStatisticsDTO);

    int insertInspection(InspectionDAO inspectionDAO);

    int updateInspection(InspectionDAO inspectionDAO);

    String selectInspectionCountByUserId(String userId);

    int listInspectionCount(InspectionStatisticsDTO inspectionStatisticsDTO);

    List<ListInspectionVO> listInspection(InspectionStatisticsDTO inspectionStatisticsDTO);

    int getProblemTotal(InspectionStatisticsDTO inspectionStatisticsDTO);

    int countProblem(InspectionStatisticsDTO inspectionStatisticsDTO);

    List<Code> listInspectionByUserId(String userId);
}
